import request from '@/utils/request'
// 获取产品分类接口
export function getPdsConfCategoryTree(params) {
  return request({
    url: '/api/pds/pdsConfCategory/getPdsConfCategoryCascade',
    method: 'get',
    params
  })
}
// 获取认证下拉列表
export function certSelect(params) {
  return request({
    url: '/api/pds/pdsFileModelPbs/certSelect',
    method: 'get',
    params
  })
}

// 获取认证下拉列表
export function certList(params) {
  return request({
    url: '/api/pds/pdsConfCertCategory/listConfCertCategory',
    method: 'get',
    params
  })
}

// 获取持证单位列表
export function unitList(params) {
  return request({
    url: '/api/pds/pdsConfCertLicensedUnit/listConfCertLicensedUnit',
    method: 'get',
    params
  })
}

// 获取账套
export function booksList(params) {
  return request({
    url: '/api/admin/tenant/getAllTenant',
    method: 'get',
    params
  })
}
// 获取工程师
export function getEngineerByName(params) {
  return request({
    url: '/api/admin/user/getUserByTenant',
    method: 'get',
    params
  })
}

// 获取附件树 配置项类型(1=颜色部件，2=附件，3=特征，4=电子电器件，5=结构件，6=控制要点)
export function getPdsConfAssetTree(params) {
  return request({
    url: '/api/pds/pdsConfAsset/getPdsConfAssetTree',
    method: 'get',
    params
  })
}

export function pdsConfModule(params) {
  return request({
    url: '/api/pds/pdsConfModule/module/category/items',
    method: 'get',
    params
  })
}
export function pdsConfModulePrams(params) {
  return request({
    url: '/api/pds/pdsConfModule/module/item/params',
    method: 'get',
    params
  })
}
export function searchMaterial(data) {
  return request({
    url: '/api/pds/pdsConfModule/module/item/materiel',
    method: 'post',
    data
  })
}

export function getFileModelNum(params) {
  return request({
    url: '/api/pds/pdsFileModelPbs/categoryFileModelNum',
    method: 'get',
    params
  })
}


export function getBizModelFileNum(params) {
  return request({
    url: '/api/pds/pdsFileModelPbs/bizModelFileNum',
    method: 'get',
    params
  })
}

export function getCustomerNum(params) {
  return request({
    url: '/api/pds/pdsCustomer/getCustomerNum',
    method: 'get',
    params
  })
}


